home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 / Aminet - June 1993 [Walnut Creek].iso / usenet / sources / volume90 / unix / tar / patch01 / part01
Encoding:
Internet Message Format  |  1990-06-03  |  3.9 KB

  1. Path: wuarchive!swbatl!texbell!cs.utexas.edu!samsung!xanth!cs.odu.edu!Amiga-Request
  2. From: Amiga-Request@cs.odu.edu (Amiga Sources/Binaries Moderator)
  3. Newsgroups: comp.sources.amiga
  4. Subject: v90i171: tar patch 01 - patch to tar, tape archive utility, Part01/01
  5. Message-ID: <12694@xanth.cs.odu.edu>
  6. Date: 3 Jun 90 21:36:30 GMT
  7. Sender: tadguy@cs.odu.edu
  8. Reply-To: hue@netcom.uucp (Jonathan Hue)
  9. Lines: 113
  10. Approved: tadguy@cs.odu.edu (Tad Guy)
  11. X-Mail-Submissions-To: Amiga@cs.odu.edu
  12. X-Post-Discussions-To: comp.sys.amiga
  13.  
  14. Submitted-by: hue@netcom.uucp (Jonathan Hue)
  15. Posting-number: Volume 90, Issue 171
  16. Archive-name: unix/tar/patch01/part01
  17.  
  18. [ a patch to the executable is also included.  ...tad ]
  19.  
  20. I found a serious bug in the tar program that was posted to
  21. comp.sources.amiga and comp.binaries.amiga (my fault, I ported it, I
  22. introduced the bug).  Tar will sometimes guru when extracting tar files
  23. created on other machines.  If anyone has found any other bugs, please
  24. report them to me.  When all the bugs that need fixing are found and
  25. fixed I will release a new version.
  26.  
  27. #!/bin/sh
  28. # This is a shell archive.  Remove anything before this line, then unpack
  29. # it by saving it into a file and typing "sh file".  To overwrite existing
  30. # files, type "sh file -c".  You can also feed this as standard input via
  31. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  32. # will see the following message at the end:
  33. #        "End of archive 1 (of 1)."
  34. # Contents:  bin.patch1 src.patch1
  35. # Wrapped by tadguy@xanth on Sun Jun  3 17:36:19 1990
  36. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  37. if test -f 'bin.patch1' -a "${1}" != "-c" ; then 
  38.   echo shar: Will not clobber existing file \"'bin.patch1'\"
  39. else
  40. echo shar: Extracting \"'bin.patch1'\" \(655 characters\)
  41. sed "s/^X//" >'bin.patch1' <<'END_OF_FILE'
  42. XFor the truly adventurous who don't have Lattice C, here is a
  43. Xbinary patch you can apply with NewZap.  Go to sector 51 and type
  44. Xin the replacement.  Here are the diffs, there are 16 bytes, address on
  45. Xthe left, old data in the middle, new data on the right:
  46. X
  47. X0x6438: 0x20 0x48
  48. X0x643a: 0x0 0xff
  49. X0x643b: 0xc 0xf4
  50. X0x643c: 0x2f 0x20
  51. X0x643d: 0x28 0x6d
  52. X0x643f: 0x4 0xc
  53. X0x6440: 0x61 0x2f
  54. X0x6441: 0x0 0x28
  55. X0x6442: 0x2 0x0
  56. X0x6443: 0x14 0x4
  57. X0x6444: 0x48 0x61
  58. X0x6445: 0x6d 0x0
  59. X0x6446: 0xff 0x2
  60. X0x6447: 0xf4 0x10
  61. X0x6448: 0x2f 0x2e
  62. X0x6449: 0x0 0x80
  63. X
  64. XI tried it, it produces a binary identical to the fixed version and it
  65. Xextracts foreign tar files properly.
  66. X
  67. X-Jonathan
  68. END_OF_FILE
  69. if test 655 -ne `wc -c <'bin.patch1'`; then
  70.     echo shar: \"'bin.patch1'\" unpacked with wrong size!
  71. fi
  72. # end of 'bin.patch1'
  73. fi
  74. if test -f 'src.patch1' -a "${1}" != "-c" ; then 
  75.   echo shar: Will not clobber existing file \"'src.patch1'\"
  76. else
  77. echo shar: Extracting \"'src.patch1'\" \(426 characters\)
  78. sed "s/^X//" >'src.patch1' <<'END_OF_FILE'
  79. X*** t:,RDFt1A30598    Mon Apr 09 16:18:54 1990
  80. X--- utime.c    Mon Apr 09 16:00:20 1990
  81. X***************
  82. X*** 35,42 ****
  83. X  {
  84. X      struct DateStamp dateStamp;
  85. X  
  86. X!     return(utime_from_stamp(filename, seconds2AmiTime(unixtime[1]),
  87. X!                 &dateStamp));
  88. X  }
  89. X  
  90. X  int
  91. X--- 35,42 ----
  92. X  {
  93. X      struct DateStamp dateStamp;
  94. X  
  95. X!     return(utime_from_stamp(filename, seconds2AmiTime(unixtime[1],
  96. X!                               &dateStamp)));
  97. X  }
  98. X  
  99. X  int
  100. END_OF_FILE
  101. if test 426 -ne `wc -c <'src.patch1'`; then
  102.     echo shar: \"'src.patch1'\" unpacked with wrong size!
  103. fi
  104. # end of 'src.patch1'
  105. fi
  106. echo shar: End of archive 1 \(of 1\).
  107. cp /dev/null ark1isdone
  108. MISSING=""
  109. for I in 1 ; do
  110.     if test ! -f ark${I}isdone ; then
  111.     MISSING="${MISSING} ${I}"
  112.     fi
  113. done
  114. if test "${MISSING}" = "" ; then
  115.     echo You have the archive.
  116.     rm -f ark[1-9]isdone
  117. else
  118.     echo You still need to unpack the following archives:
  119.     echo "        " ${MISSING}
  120. fi
  121. ##  End of shell archive.
  122. exit 0
  123. -- 
  124. Mail submissions (sources or binaries) to <amiga@cs.odu.edu>.
  125. Mail comments to the moderator at <amiga-request@cs.odu.edu>.
  126. Post requests for sources, and general discussion to comp.sys.amiga.
  127.